home *** CD-ROM | disk | FTP | other *** search
- <!-- Disable Right Click
- var message="";
- function clickIE() {if (document.all) {(message);return false;}}
- function clickNS(e) {if
- (document.layers||(document.getElementById&&!document.all)) {
- if (e.which==2||e.which==3) {(message);return false;}}}
- if (document.layers)
- {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
- else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
-
- document.oncontextmenu=new Function("return false")
- // End Disable Right Click-->
-
- <!-- Disable Select Text
- function disableselect(e){
- return false
- }
-
- function reEnable(){
- return true
- }
-
- //if IE4+
- document.onselectstart=new Function ("return false")
-
- //if NS6
- if (window.sidebar){
- document.onmousedown=disableselect
- document.onclick=reEnable
- }
- // End Disable Select Text-->
-
-
- <!-- Begin DropMenu
- function leapto(form) {
- var myindex=form.dest.selectedIndex
- parent.bottomFrame.location.href=(form.dest.options[myindex].value);
- }
- // End DropMenu-->
-
- <!--PrintImage
- var da = (document.all) ? 1 : 0;
- var pr = (window.print) ? 1 : 0;
- var mac = (navigator.userAgent.indexOf("Mac") != -1);
-
- function printPage() {
- if (pr) // NS4, IE5
- window.print()
- else if (da && !mac) // IE4 (Windows)
- vbPrintPage()
- else // other browsers
- alert("Sorry, your browser doesn't support this feature.");
- return false;
- }
-
- if (da && !pr && !mac) with (document) {
- writeln('<OBJECT ID="WB" WIDTH="0" HEIGHT="0" CLASSID="clsid:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>');
- writeln('<' + 'SCRIPT LANGUAGE="VBScript">');
- writeln('Sub window_onunload');
- writeln(' On Error Resume Next');
- writeln(' Set WB = nothing');
- writeln('End Sub');
- writeln('Sub vbPrintPage');
- writeln(' OLECMDID_PRINT = 6');
- writeln(' OLECMDEXECOPT_DONTPROMPTUSER = 2');
- writeln(' OLECMDEXECOPT_PROMPTUSER = 1');
- writeln(' On Error Resume Next');
- writeln(' WB.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER');
- writeln('End Sub');
- writeln('<' + '/SCRIPT>');
- }
- //End PrintImage-->
-
- <!-- CopyImage
- function copyTo(sImgID) {
- var ctrlRange = document.body.createControlRange();
- ctrlRange.add(document.all(sImgID));
- ctrlRange.execCommand("Copy");
- }
- //End CopyImage-->